<template>
  <div>
    <addOrEditService
      v-if="serviceId"
      :serviceId="serviceId"
    ></addOrEditService>
  </div>
</template>

<script setup name="editService" lang="ts">
import addOrEditService from '../components/addOrEditService.vue';
const route = useRoute();
const serviceId = ref<any>('');
onMounted(() => {
  if (route.query.id) {
    serviceId.value = route.query.id;
  }
});
</script>

<style lang="scss" scoped>
</style>
